No Sorting? Better Searching!
نویسندگان
چکیده
Questions about order versus disorder in systems and models have been fascinating scientists over the years. In Computer Science, order is intimately related to sorting, commonly meant as the task of arranging keys in increasing or decreasing order with respect to an underlying total order relation. The sorted organization is amenable for searching a set of n keys, since each search requires Θ(log n) comparisons in the worst case, which is optimal if the cost of a single comparison can be considered a constant. Nevertheless, we prove that disorder implicitly provides more information than order does. For the general case of searching an array of multidimensional keys, whose comparison cost is proportional to their length (and hence cannot be considered a constant), we demonstrate that “suitable” disorder gives better bounds than those derivable by using the natural lexicographic order. We start out from previous work done by Andersson, Hagerup, H̊astad and Petersson [SIAM Journal on Computing, 30(2), 2001], who proved that Θ ( k log log n log log(4 + k log log n log n ) + k + log n ) character comparisons (or probes) are the tight complexity for searching a plain sorted array of n keys, each of length k, arranged in lexicographic order. We describe a novel permutation of the n keys that is different from the sorted order. When keys are kept “unsorted” in the array according to this permutation, the complexity of searching drops to
منابع مشابه
Searching and Sorting of Fully Homomorphic Encrypted Data on Cloud
The challenge of maintaining confidentiality of stored data in cloud is of utmost importance to realize the potential of cloud computing. Storing data in encrypted form may solve the problem, but increases the security issues and diminishes the essence of cloud while performing operations on cloud data by repeated decryption-encryption. Hence, Fully homomorphic encryption (FHE) is an effective ...
متن کاملProgramming Research Group CONVERTING SORTING ALGORITHMS TO FAST RANDOMIZED ONES VIA SEARCHING
In this work we present an algorithmic transformation, that given two algorithms implementing respectively, sorting and searching, provides a randomized sorting algorithm that with high probability requires less time than the original sorting algorithm. This claim is true for a wide range of the parameters that describe the running time of the procedures for sorting and searching.
متن کاملSorting and Searching with a Faulty Comparison Oracle
abstract We study sorting and searching using a comparison oracle that \lies." First, we prove that an algorithm of
متن کاملinfoDNA (Version 2) Agent Enhanced Trustworthy Distributed Information
This paper introduces the infoDNA architecture, which seeks to address some of the intricacies involved in ascertaining the trustworthiness of information in a multi-person social networked setting. Using trust measures and digital signatures, a history of individual pieces of information can be built up to enable agents to better perform information handling tasks such as searching, sorting, a...
متن کاملFaster Deterministic Sorting and Searching in Linear Space
We present a significant improvement on linear space deterministic sorting and searching. On a unit-cost RAM with word size w, an ordered set of nw-bit keys (viewed as binary strings or integers) can be maintained in
متن کامل